package com.imooc.service.solo;

import com.imooc.entity.bo.HeadLine;
import com.imooc.entity.dto.Result;

import java.util.List;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2020/7/7-2020
 * @Description: 头条service
 */
public interface HeadLineService {

    /**
     * 增加头条
     * @param headLine
     * @return
     */
    Result<Boolean> addHeadLine(HeadLine headLine);

    /**
     * 删除头条
     * @param headLineId
     * @return
     */
    Result<Boolean> removeHeadLine(Integer headLineId);

    /**
     * 修改头条
     * @param headLine
     * @return
     */
    Result<Boolean> modifyHeadLine(HeadLine headLine);

    /**
     * 根据id查询HeadLine 头条对象
     * @param headLineId
     * @return
     */
    Result<HeadLine> queryHeadLineById(Integer headLineId);

    /**
     * 查询头条对象集合
     * @param headLineCondition
     * @return
     */
    Result<List<HeadLine>> queryHeadLine(HeadLine headLineCondition,Integer pageIndex,Integer pageSize);
}
